package leetcode.code1147;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1147 implements IDebug {

	public abstract int longestDecomposition(String text);

	@Override
	public void debug1() {
		String text = "ghiabcdefhelloadamhelloabcdefghi";
		int e = 7;
		int r = this.longestDecomposition(text);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String text = "merchant";
		int e = 1;
		int r = this.longestDecomposition(text);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String text = "antaprezatepzapreanta";
		int e = 11;
		int r = this.longestDecomposition(text);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		String text = "aaa";
		int e = 3;
		int r = this.longestDecomposition(text);
		HelpDebug.compare(e, r);
	}

}
